<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><s:text name='homePage' /></title>
<link rel="stylesheet" href="view/question/css/ask-style.css" type="text/css" media="screen">
<link rel="stylesheet" href="view/question/css/global.css" type="text/css" media="screen">
<link rel="stylesheet" href="view/question/js/pagination/pagination.css" type="text/css" media="screen">
<link rel="stylesheet" href="js/thickbox/thickbox.css" media="screen"  type="text/css" />
<link rel="stylesheet" href="kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="kindeditor/plugins/code/prettify.css" />
<script type="text/javascript" src="view/question/js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="view/question/js/animation.js"></script>
<script type="text/javascript" src="view/question/js/pagination/jquery.pagination.js"></script>
<script type="text/javascript" src="view/question/myjs/nation.jsp"></script> 
<script type="text/javascript" src="js/thickbox/thickbox-compressed.js" ></script>
<script type="text/javascript" src="view/question/myjs/question.js"></script> 
<script  type="text/javascript" src="kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="kindeditor/plugins/code/prettify.js"></script>
<script type="text/javascript" src="kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="daoepingjs/script_common.js"></script>



</head>
<script type="text/javascript"  language="javascript">

$(document).ready(function() {
 	selectData("question_category","","findBsc_categoryList","" ); 
 	selectData("right-item-list","question-right-item","findBsc_categoryList","" );
 	selectData("fav-dir-sel","fav-dir-sel","findBzn_questionfavgroupList","" );
	findAllQuestionList(0);    
    getKindEditor("question_content" );  
    
/*  test();  */
});

</script>
<body>
<a href = "forwardPage.jsp?flag=login">user1</a>&nbsp;&nbsp;&nbsp;<a href = "forwardPage.jsp?flag=login2">user2</a>
<input type="hidden" value="${param.flag}" id="flag"/>
<input type="hidden" value = "question"   name="page.flag" id="page_flag"/>

<div id="ask-messagebox" style="display:none">
<form action="addBzn_question.action" method="post" id="question_form">
<input type="hidden" name="bzn_question.usr_user.id" value="${user.id}" id="userId"/>
<input type="hidden" name="bzn_question.flag"  id = "question_flag"/>
<p><s:text name="title" />:<input type="text" name="bzn_question.title"   onkeypress="judge_enter()"/></p>
<p><s:text name="category" />:<select name="bzn_question.bsc_category.id" id="question_category"></select></p>
<p><s:text name="content" />:<textarea id="question_content" name="bzn_question.content"></textarea></p>
<input type="button" value="<s:text name="add"/><s:text name="question"/>" onclick="questionSubmit('question')">
<input type="button" value="<s:text name="add" /><s:text name="to" /><s:text name="my" /><s:text name="draft" />" onclick="questionSubmit('draft')">
<input type="hidden" name="jsonData.jsonData" id="hidden_user"/>
</form>

<div id="checkbox-user"></div>

</div>


<div id="fav-messagebox" style="display:none">

	<form >
		<select name="move" id="fav-dir-sel" ></select><a style="cursor:hand" onclick="showFav()" > <s:text name='createDirectory'/></a>
	<input type = "hidden" id = "favques_id"/>
	<input type="button" value="<s:text name="add" /><s:text name="to" /><s:text name="my" /><s:text name="collection" />" onclick="addQuestionfavorite( )">
	</form>

	<div id="fav-dir-messagebox" style="display:none">
		<form >
			<p><s:text name="directory"/><input type="text" name="bzn_questionfavgroup.name"  id = "fav_name"/></p>
			<p><s:text name="description"/><input type="text" name="bzn_questionfavgroup.description" id = "fav_desc"/></p>
			<input type="button" value="<s:text name='submit'/>"  id = "button_favgroup"/>
			
		</form>
	</div>

</div>



 <div class="navigation-bar">
		<div class="personal">
		<input type="button" value="logout" onclick="logout()"/>
			<a href="#"><img src="view/question/image/p1.gif" alt="" />
			</a> ${user.username} <a ><s:text name='myDaoEPing' /></a>
			 <a class="link" href="view/user/findUsrAllInfoByUserId.action?usr_userbasicinfo.usr_user.id=1"><s:text name='myCenter' /></a>	 <br /> <span><s:text
					name='theTestArchitect' /></span> <span><s:text name='shangHai' /></span>
		</div>
		<div class="clear"></div>
	</div>
	<div class="body-content">
		<div id="body-left" class="border-frame">
			<div id="left-top">
				<img class="left-title-pic" src="view/question/image/left-top-pic.gif"
					alt="" />
				<div class="left-top-itemlist">
					<ul>
						<li><a href="view/question/viewQuestiondraft.jsp?flag=1"><s:text name='myDraft' /></a></li>
						<li><a href="view/question/viewQuestiondraft.jsp?flag=0"><s:text name='myQuestion' /></a></li>
						<li><a href="view/question/viewFavorite.jsp"><s:text name='myCollection' /></a></li>
						<li><a href="view/question/viewQuestionassigned.jsp"><s:text name='invitedMeToReply' /></a></li>
					</ul>
				</div>
			</div>
			<div id="left-bottom">
				<img class="" src="view/question/image/left-bottom-pic.gif" alt=""></img>
				<a id="friend-manager" href="view/question/viewFriend.jsp"><s:text
						name='friendsManagement' /> </a>
				<div class="clear"></div>
				<div id="person-search">
					<div class="person-search-box">
						<select class="left" name="fields">
							<option value="sh">
								<s:text name='shangHai' />
							</option>
							<option value="bg">
								<s:text name='beiJing' />
							</option>
							<option value="gz" selected="selected">
								<s:text name='guangZhou' />
							</option>
							<option value="sz">
								<s:text name='shenZhen' />
							</option>
						</select>
					</div>
					<div class="person-search-box right-box">
						<select class="right-input-box" name="fields">
							<option value="sh">
								<s:text name='test' />
							</option>
							<option value="bg">
								<s:text name='testLevel1' />
							</option>
							<option value="gz" selected="selected">
								<s:text name='testLevel2' />
							</option>
							<option value="sz">
								<s:text name='test' />
							</option>
						</select> <img src="view/question/image/icon/search.png" alt="" />
					</div>
					<div class="clear"></div>
				</div>

				<div id="person-list">
					<div class="person">
						<img class="head" src="view/question/image/p1.gif" alt="" /> <a
							class="name" href="#"><s:text name='deHuaLiu' /></a> <span
							class="person-title"><s:text name='theTestArchitect' /></span> <span
							class="person-position"><s:text name='shangHai' /></span>
					</div>
				</div>
			</div>
		</div>

		<div id="body-center-content">
			<div id="top-tool">
				<div id="ask-search">
					<input id="search-ask-input" type="text"
					name="bzn_question.title"
						value="<s:text name = 'searchTopicsOrQuestionOrMan'/>"
						onfocus="this.value=''" onblur="if(this.value=='')this.value='<s:text name = 'searchTopicsOrQuestionOrMan'/>'" />
					<a style="cursor:hand" onclick="findAllQuestionList(0)"><img id="search-button" src="view/question/image/search.png"
						alt="<s:text name = 'search'/>" /></a> <a href="#TB_inline?height=550&width=600&inlineId=ask-messagebox" title="Question" class="thickbox" type="button" onclick="viewUser()" ><img id="ask-button"
						src="view/question/image/ask.png" alt="<s:text name = 'ask'/>" /></a>
						<input type="hidden" id="question-follow-flag" value="question"/>
					<div class="clear"></div>
				</div>
				<div id="nav-button">
					<a style="cursor:hand" onclick="allQuestionOrMyConcern('question')" ><img id="all-button" src="view/question/image/all.gif"
						alt="<s:text name = 'allQuestions'/>" /></a>	<a style="cursor:hand" onclick="allQuestionOrMyConcern('follow')" > <img id="mine-button"
						src="view/question/image/my.gif" alt="<s:text name = 'myConcern'/>" /></a>
				<div class="clear"></div>
				</div>
			</div>
			<div id="questions">

				<div id="question-list">
					
				</div>
				<div id="Pagination" class="flickr" style="dispaly:none"></div>
			</div>
		</div>
		<div id="body-right" class="border-frame">
			<img class="right-title-pic" src="view/question/image/right-top.gif"
				alt="" />
			<div class="clear"></div>
			<div class="right-mid">
				<div class="right-itemlist">
				<input type='hidden' id='category_id' value='category_id'/>
					<ul id="right-item-list">
						<li><s:text name='automationTest' /></li>
						<li><s:text name='performanceTest' /></li>
						<li><s:text name='securityTest' /></li>
						<li><s:text name='testManagement' /></li>
						<li><s:text name='designTestCase' /></li>
						<li><s:text name='testProcess' /></li>
					</ul>
				</div>
			</div>
			<img class="right-bottom-pic" src="view/question/image/right-bottom.gif"
				alt="" />
		</div>
	</div>
</body>

</html>
